import 'package:flutter/material.dart';

class Page_One extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      decoration: BoxDecoration(
          image: DecorationImage(
              image: NetworkImage(
                  "http://img0.imgtn.bdimg.com/it/u=1486826859,4031998705&fm=200&gp=0.jpg"),
              fit: BoxFit.cover //填充整个容器
              )),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.center,
        children: <Widget>[
          Container(
            margin: EdgeInsets.all(10.0),
            padding: EdgeInsets.all(20.0),
            width: 90.0,
            height: 90.0,
            child: Icon(
              Icons.pool,
              color: Colors.white,
              size: 30,
            ),
            decoration: BoxDecoration(
                color: Colors.blue,
                border: Border.all(color: Colors.grey),
                shape: BoxShape.circle,
//                gradient: RadialGradient(//圆形颜色渐变
//                    colors: [Colors.lightBlue, Colors.blueAccent]),
//                borderRadius: BorderRadius.circular(16.0),
                gradient: LinearGradient(
                    //线性颜色渐变
                    colors: [Colors.lightBlue, Colors.blueAccent],
                    begin: Alignment.topCenter,
                    end: Alignment.bottomCenter),
                boxShadow: [
                  BoxShadow(
                      //设置阴影效果
                      color: Color.fromRGBO(7, 16, 188, 0.6),
                      offset: Offset(6.0, 7.0), //偏移量
                      blurRadius: 25.0, //透明度
                      spreadRadius: -9.0) //扩散程度
                ]),
          )
        ],
      ),
    );
  }
}
